#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <cstdio>
#include <qprocess.h>
#include <idiom.h>

namespace Ui {
class MainWindow;
}

/**
 * @brief The MainWindow class
 * This class is the visual interface as a Frame.  The final user will has this
 * frame to his necessities.
 * Futhermore, this class has the code to all events.
 */
class MainWindow : public QMainWindow
{
  Q_OBJECT

public:
  explicit MainWindow(QWidget *parent = 0);
  ~MainWindow();
  void refreshIdiom();

private slots:
  void on_pushButton_start_clicked();
  void on_pushButton_folder_clicked();
  void on_pushButton_clear_clicked();
  void on_comboBox_language_currentIndexChanged(int index);

private:
  void loadSettings();
  void saveSettings();

  Ui::MainWindow *ui;
  QProcess* proc ;
  QString history;
  Idiom idiom;
  QString home;
  bool fastrun;

friend class PythonServer;
};

#endif // MAINWINDOW_H
